package com.aaa.common.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: 宋文森
 * @Date: 2021/02/05/14:35
 * @Description: 租入合同实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class RentInContractInfo implements Serializable {

    /**
     * id                          自增列
     * contractId                    合同编号
     * assetId                    资产编号
     * lessee                      承租方
     * lessor                      出租方
     * contact                     联系人
     * phone                       手机号
     * contractBeginDate           合同开始时间
     * contractEndDate             合同结束时间
     * annualRent                  年租金
     * contractStatusId            合同状态id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("contract_id ")
    private String contractId;
    @TableField("asset_id")
    private String assetId;
    private String lessee;
    private String lessor;
    private String contact;
    private String phone;
    @TableField("contract_begin_date")
    private Date contractBeginDate;
    @TableField("contract_end_date")
    private Date contractEndDate;
    @TableField("annual_rent")
    private Integer annualRent;
    @TableField("contract_status_id")
    private Integer contractStatusId;
    private String address;
    @TableField("asset_type_id")
    private Integer assetTypeId;
    @TableField("contract_status")
    private String contractStatus;


}
